package com.ruoyi.emergency.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; //添加
import com.ruoyi.emergency.domain.EmergencyPlan;

/**
 * 应急预案Mapper接口
 * 
 * @author hcc
 * @date 2024-11-17
 */
public interface EmergencyPlanMapper extends BaseMapper<EmergencyPlan> //修改
{
    /**
     * 查询应急预案
     * 
     * @param id 应急预案主键
     * @return 应急预案
     */
    public EmergencyPlan selectEmergencyPlanById(Long id);

    /**
     * 查询应急预案列表
     * 
     * @param emergencyPlan 应急预案
     * @return 应急预案集合
     */
    public List<EmergencyPlan> selectEmergencyPlanList(EmergencyPlan emergencyPlan);

    /**
     * 新增应急预案
     * 
     * @param emergencyPlan 应急预案
     * @return 结果
     */
    public int insertEmergencyPlan(EmergencyPlan emergencyPlan);

    /**
     * 修改应急预案
     * 
     * @param emergencyPlan 应急预案
     * @return 结果
     */
    public int updateEmergencyPlan(EmergencyPlan emergencyPlan);

    /**
     * 删除应急预案
     * 
     * @param id 应急预案主键
     * @return 结果
     */
    public int deleteEmergencyPlanById(Long id);

    /**
     * 批量删除应急预案
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEmergencyPlanByIds(Long[] ids);
}
